/** 当你的路由表太长的时候，你可以把路由表的内容分成几个小的模块**/

import ExpertTopNav from "@/components/ExpertTopNav";
import ExpertIndex from "@/views/expert/ExpertIndex";
import ExpertInfo from "@/views/expert/ExpertInfo";
import ExpertReworkPassword from "@/views/expert/ExpertReworkPassword";
import ShowProjectCategories from "@/views/expert/ShowProjectCategories";
import ShowProjects from "@/views/expert/ShowProjects";
import ShowProjectInfo from "@/views/expert/ShowProjectInfo";


const ExpertRouter = {
    //专家首页
    path: 'expert',
    name: 'expertTopNav',
    component: ExpertTopNav,
    children: [
        //专家首页
        {
            path: 'index',
            name: 'expertIndex',
            component: ExpertIndex,
        },
        //专家信息
        {
            path: 'info',
            name: 'expertInfo',
            component: ExpertInfo
        },
        //专家修改密码
        {
            path: 'updatePassword',
            name: 'expertReworkPassword',
            component: ExpertReworkPassword,
        },
        //项目分类列表
        {
            path: 'projectCategories',
            name: 'showProjectCategories',
            component: ShowProjectCategories,
        },
        //项目列表
        {
            path: 'showProjects',
            name: 'showProjects',
            component: ShowProjects
        },
        //项目信息
        {
            path: 'showProjectInfo',
            name: 'showProjectInfo',
            component: ShowProjectInfo
        }
    ]
}

export default ExpertRouter
